package com.example.petstore.service;

import com.example.petstore.entity.Collection;
import com.example.petstore.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.petstore.utils.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author DD
 * @since 2024-07-04
 */
public interface IOrderService extends IService<Order> {

    public Result getAll(int  current,int size);

    public Result updateStatus(Order order);

    public Result purchase(Order order);

    public Result receive(Order order);

//    创建订单
    public Result create(Order order);

    //购物车批量购买
    public Result buyAll(List<Collection> collectionList);

    public Result getNotPaid(int current ,int size);

}
